home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 141 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. From: Eugene Lazutkin <eugene@int.com>
  2. Message-ID: <01BAEB16.3DF53D40@dino.int.com>
  3. X-Original-Date: Thu, 25 Jan 1996 11:14:05 -0600
  4. Path: in1.uu.net!bounce-back
  5. Date: 26 Jan 96 04:53:37 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Organization: -
  8. Newsgroups: comp.std.c++
  9. Subject: FW: FW: Inherent C++ problem?
  10. Encoding: 32 TEXT
  11. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  12.     iQBFAgUBMQheb+EDnX0m9pzZAQGyugF/S7mrS4UcjmsbDqEv5RYOXEmSIQbn8VPa
  13.     Idr+CiUANQAb+gEw6102WyCRfClKRlyb
  14.     =ujiY
  15.  
  16. ----------
  17. From:     Max Motovilov[SMTP:max@int.com]
  18. Sent:     Thursday, January 25, 1996 11:11 AM
  19. To:     'Eugene Lazutkin'
  20. Subject:     RE: FW: Inherent C++ problem?
  21.  
  22. > Here is part of the relevent section in the draft standard:
  23. > 12.2 Temporary objects
  24. > While evaluating an expression, it might be necessary or convenient
  25. > for an implementation to generate temporary objects to hold values
  26. > resulting from the evaluation of the expression's subexpressions.
  27. > During this evaluation, precisely when such temporaries are
  28. > introduced is unspecified.
  29.  
  30. Well, I guess it is exactly the "not explicit enough" thing, at least
  31. when related to the case I described:
  32.  
  33. Foo    foo()
  34. {
  35.     return Foo( ...... );
  36. }
  37.  
  38. Foo( ..... ) is a full expression rather than subexpression. So, is the
  39. implementation _required_ to instantiate _this_ temporary under the
  40. current standard?
  41.  
  42. Regards,
  43. ...Max...
  44. ---
  45. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  46.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  47.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  48.